﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DbUpgradeOracle
{
    public partial class FormInputPassword : Form
    {
        private string _password;
        public static string ShowPassword(IWin32Window owner)
        {
            FormInputPassword f = new FormInputPassword();
            if(f.ShowDialog(owner) == DialogResult.OK)
            {
                return f._password;
            }
            else
            {
                return string.Empty;
            }
        }
        public FormInputPassword()
        {
            InitializeComponent();
        }

        private void btnSave_Click(object sender, EventArgs e)
        {
            this._password = edtPassword.Text;
            this.DialogResult = DialogResult.OK;
        }
    }
}
